package com.crazy.web.service.user;

import com.crazy.model.major.dto.UserSession;
import com.crazy.model.major.entity.TUser;
import org.springframework.stereotype.Service;

/**
 * 用户服务接口
 * @author zhaochaofeng
 * @version 1.0
 * @date 2020/11/12 15:11
 */
public interface UserService {

    /**
     * 通过userName获取用户信息
     * @param userName
     * @return
     */
    TUser getByUserName(String userName);

    /**
     * 通过用户信息获取UserSession
     * @param userId
     * @return
     */
    UserSession getUserSession(long userId);
}
